<?php
	class E{
		static $DB;

		function bootstrap(&$db){
			$_ENV['__time__']	= explode(' ', microtime());
			self::$DB	= new DB($db);
			$db	= null ;
		}

	}


	function ___autoload($class_name, $dirs = null) {
		if ( class_exists($class_name, false) || interface_exists($class_name, false) ) {
			return false;
		}
		$class_name	= strtolower($class_name);
		$filename	= B_DIR . '/_inc/php5/' . str_replace('_', '/', $class_name ) . '.php';
		include($filename);
	}
	
	spl_autoload_register(___autoload);

?>